//package jp.sourceforge.talisman.mds.distance;
//
///*
// * $Id: DistanceCalculatorFactoryTest.java,v 1.1 2009/09/12 05:06:07 weiwei Exp $
// */
//
//import org.junit.Assert;
//import org.junit.Before;
//import org.junit.Test;
//
///**
// * 
// * @author Haruaki Tamada
// * @version $Revision: 1.1 $ 
// */
//public class DistanceCalculatorFactoryTest{
//    private DistanceCalculatorFactory factory;
//    
//    @Before
//    public void setUp(){
//        factory = DistanceCalculatorFactory.getInstance();
//    }
//
//    @Test
//    public void testFactory(){
//        Assert.assertTrue(factory.getDefaultItemDistanceCalculator() instanceof SquaredEuclideanItemDistanceCalculator);
//
//        Assert.assertTrue(factory.getItemDistanceCalculator(ItemDistanceAlgorithm.MINKOWSKY_DISTANCE)  instanceof MinkowskyItemDistanceCalculator);
//        Assert.assertTrue(factory.getItemDistanceCalculator(ItemDistanceAlgorithm.CITY_BLOCK_DISTANCE) instanceof CityBlockItemDistanceCalculator);
//        Assert.assertTrue(factory.getItemDistanceCalculator(ItemDistanceAlgorithm.DOMINANCE_METRIC)    instanceof DominanceMetricCalculator);
//    }
//}
